package com.itheima.client.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheim.client.pojo.User;
import com.itheim.client.vo.UserVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author longbosheng
 * @Date 2022/6/11 14:36
 * @PackageName:com.itheima.mapper
 * @ClassName: EmployeeLoginMapper
 * @Description: TODO
 * @Version 1.0
 */
@Mapper
public interface LoginMapper extends BaseMapper<User> {
    /**
     * 按手机号查询用户信息
     * @param user
     * @return
     */
    @Select("select * from user  where phone = #{phone}")
    UserVo selectUser(User user);
}
